#!/bin/bash
#PBS -A MAT001qmc
#PBS -N j_fftw
#PBS -j oe
#PBS -l walltime=00:30:00,size=4
##PBS -q debug
#PBS -V

cd $PBS_O_WORKDIR
export OMP_NUM_THREADS=1
#let NP=$PBS_NNODES/$OMP_NUM_THREADS
#let NPS=4/$OMP_NUM_THREADS
for ng in 12288 1536 384
do
  for howmany in 1 4 16 64 135 270 540
  do
    let iter=17280/$howmany
    aprun -n 1 ./fft_bench --s $ng  --n $howmany --i $iter
  done
done
#aprun -q -n 2 ./fft_bench --s ${NG} -n 540
#aprun -q -n 4 ./fft_bench --s ${NG} -n 540
#let ng=512
#aprun -q -n2 ./bench --report-mflops  ${NG} > ${MG}.2core
#aprun -q -n4 ./bench --report-mflops  ${NG} > ${MG}.4core
#let ng=1024
#aprun -q -n2 ./bench --report-mflops  ${NG} > ${MG}.2core
#aprun -q -n4 ./bench --report-mflops  ${NG} > ${MG}.4core

